/*
 * ValidateNick.java
 *
 * Created on 29 de Junho de 2005, 14:09
 */

package jhub.text;
import java.text.*;

import jhub.DCProtocol;
/**
 *
 * @author  botelhodaniel
 */
public class ValidateNickMessage extends DCRawCommand{
    
    private String nick;
    
    /** Creates a new instance of ValidateNick */
    public ValidateNickMessage(String command) throws ParseException{
        super(command);
        parse();
    }
    
    private void parse() throws ParseException{
        Object[] o = new MessageFormat(DCProtocol.VALIDATE_NICK_FORMAT).parse(command.toString());
        nick = o[0].toString();
    }
    
    public String getNick(){
        return nick;
    }

}
